<app:aside-block class='aside-block-highlighted creep-properties' heading='Power Creep' visibility-model='Room.asidePanels.view'>
<div ng:controller='Top.Game.Room.PowerCreepProperties as PowerCreepProperties'>
<div class='object-properties-id'>
ID: {{Room.selectedObject._id}}
</div>
<div>
<label>Owner:</label>
<a ng:href="#!{{ 'top.profile' | routeSegmentUrlStateless:{username: Room.users[Room.selectedObject.user].username} }}" ng:if='!Room.isSelectedObjectNPC()' title='View user profile'>
<img app:badge-src='Room.users[Room.selectedObject.user].badge'>
{{Room.users[Room.selectedObject.user].username}}
</a>
<span ng:if='Room.isSelectedObjectNPC()'>
{{Room.users[Room.selectedObject.user].username}}
</span>
</div>
<div>
<label>Name:</label>
{{Room.selectedObject.name}}
</div>
<div>
<label>Class:</label>
{{Room.selectedObject.className}}
</div>
<div>
<label>Level:</label>
{{Room.selectedObject.level}}
</div>
<div>
<label>Position:</label>
{{Room.selectedObject.x}}, {{Room.selectedObject.y}}
</div>
<div>
<label>Hits:</label>
{{Room.selectedObject.hits | round}} / {{Room.selectedObject.hitsMax | round}}
</div>
<div ng:if='Room.gameTime &amp;&amp; Room.selectedObject.ageTime &gt;= Room.gameTime'>
<label>Time to live:</label>
{{Room.selectedObject.ageTime - Room.gameTime}}
</div>
<div class='body'>
<label class='body-header'>
Carry
<div class='pull-right'>
{{Room.calcResources(Room.selectedObject) | round}} / {{Room.selectedObject.storeCapacity | round}}
</div>
</label>
<div ng:if='!Room.calcResources(Room.selectedObject)'>Empty</div>
<table class='carry-resource'>
<tr ng:if='amount &gt; 0' ng:repeat='(resourceType, amount) in Room.selectedObject.store'>
<td>{{amount | number}}&nbsp;&times;&nbsp;</td>
<td>
<img class='resource-type' ng-src='https://s3.amazonaws.com/static.screeps.com/upload/mineral-icons/{{resourceType}}.png' uib-tooltip='{{Room.resourceTypeNames[resourceType]}}'>
</td>
</tr>
</table>
</div>
<div class='body'>
<label class='body-header'>
Powers
</label>
<div class='effect-icon-container' ng-repeat='(powerId,power) in Room.selectedObject.powers'>
<app-effect-icon effect-id='powerId' level='power.level' timer-max='Room.Constants.POWER_INFO[powerId].cooldown' timer='Room.gameTime ? power.cooldownTime - Room.gameTime : undefined'></app-effect-icon>
</div>
</div>
<ng-include src="'room-object-effects'"></ng-include>
<md-checkbox class='md-primary' md-no-ink ng:change='Room.onNotifyWhenAttackedChange()' ng:if="!Game.readOnly &amp;&amp; Room.selectedObject.user == Me()._id &amp;&amp; Room.roomMode == 'world'" ng:model='Room.selectedObject.notifyWhenAttacked'>
Notify me when attacked
</md-checkbox>
<md:button class='md-primary md-hue-1 allwidth' ng:click='PowerCreepProperties.addMemoryWatch()' ng:if='!Game.readOnly &amp;&amp; (Room.selectedObject.user == Game.player || Room.selectedObject.user == 0 &amp;&amp; Game.player == Me()._id)'>
View memory
</md:button>
<md:button class='md-warn allwidth' ng:click='PowerCreepProperties.suicide()' ng:if='!Game.readOnly &amp;&amp; (Room.selectedObject.user == Game.player || Room.selectedObject.user == 0 &amp;&amp; Game.player == Me()._id)'>
{{PowerCreepProperties.askSuicide ? 'Click again to confirm' : 'Suicide'}}
</md:button>
</div>
</app:aside-block>
